package com.daogu.fuelcard.dao;

import com.daogu.fuelcard.entity.OilCard;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface OilCardMapper {

    void insert(OilCard oilCard);

    OilCard selectByCardNo(@Param("cardNo") String CardNo);

    void deletedById(@Param("id") String id);

    void updateBalance(@Param("cardNo") String cardNo,@Param("balance") BigDecimal balance);

    List<OilCard> selectAll();

}
